/** 账户相关请求 */
import request from '../request';

interface ILoginParams {
  username: string;
  password: string;
}
export const login = (params: ILoginParams) =>  request.post('/login', params);


interface IRegisterParams {
  identity: string;
  username: string;
  password: string;
}
export const register =  (params: IRegisterParams) =>  request.post('/register', params);